const util = require('./utils.js')

async function readFileAsync() {
	const data = await util.readFilePromse('old.txt')
    console.log(data)
}
// readFileAsync()

async function writeAsync(){
    const data = await util.writeFilePromse('old.txt','这是我要写的内容')
    console.log(data);
}
writeAsync()

// util.writeFilePromse('old.txt','这是我要写的内容')
// 	.then(resolve=>{
// 		console.log(resolve);
// 	})
// 	.catch(reject=>{
// 		console.log(reject);
// 	})



// util.copyFile('old.txt', 'new.txt')
